# 序数
numbers = list(range(1,10))
for number in numbers:
    if number == 1:
        print(f"{number}的序数为{number}st")
    elif number == 2:
        print(f"{number}的序数为{number}nd")
    elif number == 3:
        print(f"{number}的序数为{number}rd")
    else:
        print(f"{number}的序数为{number}th")